package com.kaiwukj.android.ufamily.di.module;

import com.kaiwukj.android.mcas.di.scope.ActivityScope;
import com.kaiwukj.android.ufamily.mvp.model.OrderModel;
import com.kaiwukj.android.ufamily.mvp.ui.page.order.OrderContract;

import dagger.Module;
import dagger.Provides;

@Module
public class OrderModule {

    private OrderContract.View view;
    private OrderContract.EvaluateView evaluateView;
    private OrderContract.OrderCreateView orderCreateView;

    public OrderModule(OrderContract.OrderCreateView orderCreateView) {
        this.orderCreateView = orderCreateView;
    }

    public OrderModule(OrderContract.View view) {
        this.view = view;
    }

    public OrderModule(OrderContract.EvaluateView evaluateView) {
        this.evaluateView = evaluateView;
    }

    @Provides
    @ActivityScope
    public OrderContract.OrderCreateView provideCreateView() {
        return orderCreateView;
    }

    @Provides
    @ActivityScope
    public OrderContract.View provideView() {
        return view;
    }

    @Provides
    @ActivityScope
    public OrderContract.EvaluateView provideEvaluateView() {
        return evaluateView;
    }

    @Provides
    @ActivityScope
    public OrderContract.Model provideModel(OrderModel model) {
        return model;
    }

}
